<!DOCTYPE html>
<html>
<head>
    <meta name="author" content="ginko"/>
    <meta charset="utf-8"/>
    <meta http-equiv="content-type" content='text/html;charset=UTF-8'/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="msapplication-tap-highlight" content="no"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <meta name="format-detection" content="telephone=no">
    <style>
        html, body {
            padding: 0;
            margin: 0;
            font-size: 16px;
        }

        .echarts {
            position: absolute;
            width: 100%;
            height: 100%;
        }

    </style>
</head>
<body class="body">
<div id="main" class="main echarts"></div>
<section>
    <script src="http://api.map.baidu.com/api?v=2.0&ak=OgsMDRFHADwHNApIatxsmj5o"></script>
    <script charset="utf-8" type="text/javascript" src="./js/jquery.js?v=0a83d"></script>
    <script charset="utf-8" type="text/javascript" src="./js/Logger.js?v=0a83d"></script>
    <script charset="utf-8" type="text/javascript" src="./js/echarts.min.js?v=0a83d"></script>
    <script charset="utf-8" type="text/javascript" src="./js/itit.common.js?v=0a83d"></script>
    <script charset="utf-8" type="text/javascript" src="./js/itit.map.js?v=0a83d"></script>
    <script charset="utf-8" type="text/javascript" src="./js/bmap.js?v=0a83d"></script>
    <script>
        $(function () {
            var mapChart = echarts.init(document.getElementById('main'));
            let option = {
                // 加载 bmap 组件
                bmap: {
                    // 百度地图中心经纬度
                    center: [120.13066322374, 30.240018034923],
                    // 百度地图缩放
                    zoom: 14,
                    // 是否开启拖拽缩放，可以只设置 'scale' 或者 'move'
                    roam: true,
                    // 百度地图的自定义样式，见 http://developer.baidu.com/map/jsdevelop-11.htm
                    mapStyle: {}
                },
                series: [{
                    type: 'scatter',
                    // 使用百度地图坐标系
                    coordinateSystem: 'bmap',
                    // 数据格式跟在 geo 坐标系上一样，每一项都是 [经度，纬度，数值大小，其它维度...]
                    data: [[120, 30, 1]]
                }]
            };
            mapChart.setOption(option);
        });
    </script>
</section>
</body>
</html>